<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    //生命对象
    let per = {
      name:'黄色的泰迪',
      sex:'母',
      hobby:'唱，跳，rap，篮球',
      speak:function(){
        return '说话'
      },
      having:function(){
        return '吃饭'
      }
    }
    //调用对象中的属性
    console.log(per.name);
    console.log(per.sex);
    console.log(per.hobby);
    console.log(`爱好是${per.speak()},${per.having()}`);

  </script>
</body>
</html>